import numpy as np
import matplotlib.pyplot as plt

MATH_INPUT_ARRAY_LEN = 64

# input.
arm_math_input_V_f32 = []
for i in range(MATH_INPUT_ARRAY_LEN):
    arm_math_input_V_f32.append(i*0.1)

in_x = np.array(arm_math_input_V_f32)

# output.
out_sin = np.sin(in_x)
out_cos = np.cos(in_x)

# print.
print('sin():')
print(out_sin)
print('cos():')
print(out_cos)

# display.
fig, axs = plt.subplots(1,2)
axs[0].plot(in_x, out_sin,  color='red', marker='.')
axs[1].plot(in_x, out_cos, color='green', marker='.')
plt.show()
